@model Coowork.Data.Mapping.CooTask

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>CooTask</legend>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Wiki</div>
    <div class="display-field">@Model.Wiki</div>

    <div class="display-label">parentId</div>
    <div class="display-field">@Model.parentId</div>

    <div class="display-label">Owner</div>
    <div class="display-field">@Model.Owner</div>

    <div class="display-label">StatusId</div>
    <div class="display-field">@Model.StatusId</div>

    <div class="display-label">CreateTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.CreateTime)</div>

    <div class="display-label">Estimate</div>
    <div class="display-field">@Model.Estimate</div>

    <div class="display-label">Remaining</div>
    <div class="display-field">@Model.Remaining</div>

    <div class="display-label">Percentage</div>
    <div class="display-field">@Model.Percentage</div>

    <div class="display-label">Creator</div>
    <div class="display-field">@Model.Creator</div>

    <div class="display-label">priority</div>
    <div class="display-field">@Model.priority</div>

    <div class="display-label">severity</div>
    <div class="display-field">@Model.severity</div>

    <div class="display-label">deleted</div>
    <div class="display-field">@Model.deleted</div>

    <div class="display-label">CooTagToTasks</div>
    <div class="display-field">@(Model.CooTagToTasks == null ? "None" : Model.CooTagToTasks.Count.ToString())</div>

    <div class="display-label">CooTask1</div>
    <div class="display-field">@(Model.CooTask1 == null ? "None" : Model.CooTask1.Count.ToString())</div>

    <div class="display-label">CooTask2</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.CooTask2).ToString()</div>

    <div class="display-label">CooTaskComments</div>
    <div class="display-field">@(Model.CooTaskComments == null ? "None" : Model.CooTaskComments.Count.ToString())</div>

    <div class="display-label">CooWatchlists</div>
    <div class="display-field">@(Model.CooWatchlists == null ? "None" : Model.CooWatchlists.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


